package org.datascooter.annotations;

import static java.lang.annotation.ElementType.FIELD;
import static java.lang.annotation.ElementType.METHOD;
import static java.lang.annotation.RetentionPolicy.RUNTIME;

import java.lang.annotation.Retention;
import java.lang.annotation.Target;

import org.datascooter.bundle.attribute.PersistencePolicy;

/**
 * Purposed for mark getters returns object which must be saved and restored
 * with given object
 * 
 * @author nemo
 * 
 */
@Target( {
		METHOD, FIELD
})
@Retention(RUNTIME)
public @interface AContainerAttribute {

	String name() default "";

	PersistencePolicy policy() default PersistencePolicy.ALL;

	String mapKeyAttribute() default "";

	boolean embedded() default false;

	boolean fetchLazy() default false;
}
